<template>
  <a-result
    :sub-title="subTitle"
    :title="title"
    :status="status"
  >
    <template v-if="$slots.extra" #extra>
      <slot name="extra" />
    </template>
    <template v-if="$slots.icon" #icon>
      <slot name="icon" />
    </template>
    <template v-if="$slots.subTitle" #subTitle>
      <slot name="subTitle" />
    </template>
    <template v-if="$slots.title" #title>
      <slot name="title" />
    </template>
    <slot />
  </a-result>
</template>

<script>
import { defineComponent } from 'vue'
import { Result } from 'ant-design-vue'
export default defineComponent({
  name: 'ZResult',
  components: {
    AResult: Result
  },
  props: {
    subTitle: {
      type: String,
      default: undefined
    },
    title: {
      type: String,
      default: undefined
    },
    status: {
      type: String,
      default: 'info'
    }
  }
})
</script>
